﻿#ifndef _RETURN_VALUE_H_
#define _RETURN_VALUE_H_

#include "oatpp/core/Types.hpp"
#include "oatpp/core/macro/codegen.hpp"
#include "oatpp/encoding/Base64.hpp"

#include OATPP_CODEGEN_BEGIN(DTO)

template<class T>
class ReturnValue : public oatpp::DTO {
	DTO_INIT(ReturnValue, DTO)
	DTO_FIELD(Int32, error, "error");
	DTO_FIELD(String, description, "description");
	DTO_FIELD(T, value, "value");
};

#include OATPP_CODEGEN_END(DTO)

#endif